<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="http://cdn.bootcss.com/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript" src="uploadify/jquery.uploadify.min.js">
</script>
<link type="stylesheet" href="uploadify/uploadify.css"/>
</head>
<body>


<form action="upload" method="post" enctype="multipart/form-data">
	<input type="text" name="uname"/><br/>
	<input type="file" name="img" id="img"/><br/>
	<input type="submit"/>
</form>
<script type="text/javascript">
	$(function(){
		$("#img").uploadify({
			formData:{'uname':'john'},
			auto:false,
			uploader:'upload',
			swf:'upload',
			height:30,
			width:120
		});
	});
</script>
</body>
</html>